<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<div style="display: none"><script id="myEditorImageB" type="text/plain"></script></div> 
<div class="pageContent">
	<form method="post" action="${rootUrl}/goods/brand/${brand.id}" class="pageForm required-validate" onsubmit="return validateCallback(this, editDialogAjaxDone);">
		 <c:if test="${brand.id != 0 && brand.id != '' }"><input type="hidden" name="_method" value="put"></c:if>
		<input type="hidden" name="brand.id" value="${brand.id }"> 
		<div class="pageFormContent" layoutH="56">
			<p>
			     <label>品牌编码：</label>
				<input name="brand.code" class="required" type="text" size="30" value="${brand.code}" />
			</p>
			<p>
				<label>品牌名称：</label>
				<input name="brand.name" class="required" type="text" size="30" value="${brand.name}" />
			</p>
			 <p>
				<label>排序：</label>
				<input  name="brand.sort" class="required" type="text" size="30" value="${brand.sort}" />
			</p>
			 <p>
				<label>是否展示：</label>
				<select name="brand.isShow" class="required combox">
				 <option <c:if test="${brand.isShow==1}">selected="selected"</c:if> value="1">展示</option>
				 <option <c:if test="${brand.isShow==0}">selected="selected"</c:if> value="0">隐藏</option>
				</select>
			</p>
			<dl>
				<dt>商标：</dt>
				<dd style="width: 250px;">
				<input name="brand.logo" id="lo" type="hidden" size="30" value="${brand.logo}"/>
				<div class="imgContainer" >
				<a href="#" onclick="iFileUploader.upImg('lo','myEditorImagelo');">
				<img id="myEditorImagelo" src="${brand.logo }" /></a></div>
				</dd>
			
			</dl>
   		 </div>
    	<div class="formBar">
			<ul>
				<li><div class="buttonActive"><div class="buttonContent"><button id="theSubmit" type="submit">保存</button></div></div></li>
				<li>
					<div class="button"><div class="buttonContent"><button type="button" class="close">取消</button></div></div>
				</li>
			</ul>
		</div>
    </form>

<script>
var imageFolder = 0;
iFileUploader.initImg("myEditorImageB","lo","myEditorImagelo",{imageFolder:imageFolder});
</script>